package com.huoyun.tag;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.UIBean;

import com.huoyun.base.bean.NodeInfo;
import com.opensymphony.xwork2.util.ValueStack;

public class CustomSelectBean extends UIBean {

	private String id;
	
	private String name;
	
	private String value;
	
	private String type;
	
	private boolean selectOne;
	
	private List<NodeInfo> nodeList;
	
	public CustomSelectBean(ValueStack stack, HttpServletRequest request,
			HttpServletResponse response) 
	{
		super(stack, request, response);
	}

	@Override
	protected String getDefaultTemplate() 
	{
		return "customSelect";
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public List<NodeInfo> getNodeList() {
		return nodeList;
	}

	public void setNodeList(List<NodeInfo> nodeList) {
		this.nodeList = nodeList;
	}

	public boolean isSelectOne() {
		return selectOne;
	}

	public void setSelectOne(boolean selectOne) {
		this.selectOne = selectOne;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
